package com.wuchao.service.impl;

import com.wuchao.entity.Entry;
import com.wuchao.mapper.EntryMapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.wuchao.entity.Users;
import com.wuchao.mapper.UsersMapper;
import com.wuchao.service.UsersService;

import java.util.List;

/**
 * @Author wuchao66
 * @Date 2023/10/10 15:49
 * @PackageName:com.wuchao.service.impl
 * @ClassName: UsersServiceImpl
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
@Service
public class UsersServiceImpl implements UsersService{
    //容器注入ioc
    @Resource

    private EntryMapper entryMapper;


    @Resource
    private UsersMapper usersMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return usersMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Users record) {
        return usersMapper.insert(record);
    }

    @Override
    public int insertSelective(Users record) {
        return usersMapper.insertSelective(record);
    }

    @Override
    public Users selectByPrimaryKey(Integer id) {
        return usersMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Users record) {
        return usersMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Users record) {
        return usersMapper.updateByPrimaryKey(record);
    }



}
